package com.huatai.dataservice.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

/**
 * 事项记录表表
 * @TableName tb_fire_event_record_form
 */
@TableName(value ="tb_fire_event_record_form")
public class TbFireEventRecordForm {
    /**
     * 事项ID
     */
    @TableId
    private String id;

    /**
     * 事件名
     */
    private String title;

    /**
     * 任务类型
     */
    private String type;

    /**
     * 处理人姓名
     */
    private String handler;

    /**
     * 处理部门名称
     */
    private String handlerdep;

    /**
     * 事件开始时间
     */
    private Date begintime;

    /**
     * 要求完成时间
     */
    private Date requiredfinishtime;

    /**
     * 实际完成时间（允许NULL值）
     */
    private Date actualfinishtime;

    /**
     * 事项ID
     */
    public String getId() {
        return id;
    }

    /**
     * 事项ID
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 事件名
     */
    public String getTitle() {
        return title;
    }

    /**
     * 事件名
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 任务类型
     */
    public String getType() {
        return type;
    }

    /**
     * 任务类型
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 处理人姓名
     */
    public String getHandler() {
        return handler;
    }

    /**
     * 处理人姓名
     */
    public void setHandler(String handler) {
        this.handler = handler;
    }

    /**
     * 处理部门名称
     */
    public String getHandlerdep() {
        return handlerdep;
    }

    /**
     * 处理部门名称
     */
    public void setHandlerdep(String handlerdep) {
        this.handlerdep = handlerdep;
    }

    /**
     * 事件开始时间
     */
    public Date getBegintime() {
        return begintime;
    }

    /**
     * 事件开始时间
     */
    public void setBegintime(Date begintime) {
        this.begintime = begintime;
    }

    /**
     * 要求完成时间
     */
    public Date getRequiredfinishtime() {
        return requiredfinishtime;
    }

    /**
     * 要求完成时间
     */
    public void setRequiredfinishtime(Date requiredfinishtime) {
        this.requiredfinishtime = requiredfinishtime;
    }

    /**
     * 实际完成时间（允许NULL值）
     */
    public Date getActualfinishtime() {
        return actualfinishtime;
    }

    /**
     * 实际完成时间（允许NULL值）
     */
    public void setActualfinishtime(Date actualfinishtime) {
        this.actualfinishtime = actualfinishtime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbFireEventRecordForm other = (TbFireEventRecordForm) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getHandler() == null ? other.getHandler() == null : this.getHandler().equals(other.getHandler()))
            && (this.getHandlerdep() == null ? other.getHandlerdep() == null : this.getHandlerdep().equals(other.getHandlerdep()))
            && (this.getBegintime() == null ? other.getBegintime() == null : this.getBegintime().equals(other.getBegintime()))
            && (this.getRequiredfinishtime() == null ? other.getRequiredfinishtime() == null : this.getRequiredfinishtime().equals(other.getRequiredfinishtime()))
            && (this.getActualfinishtime() == null ? other.getActualfinishtime() == null : this.getActualfinishtime().equals(other.getActualfinishtime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getHandler() == null) ? 0 : getHandler().hashCode());
        result = prime * result + ((getHandlerdep() == null) ? 0 : getHandlerdep().hashCode());
        result = prime * result + ((getBegintime() == null) ? 0 : getBegintime().hashCode());
        result = prime * result + ((getRequiredfinishtime() == null) ? 0 : getRequiredfinishtime().hashCode());
        result = prime * result + ((getActualfinishtime() == null) ? 0 : getActualfinishtime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", title=").append(title);
        sb.append(", type=").append(type);
        sb.append(", handler=").append(handler);
        sb.append(", handlerdep=").append(handlerdep);
        sb.append(", begintime=").append(begintime);
        sb.append(", requiredfinishtime=").append(requiredfinishtime);
        sb.append(", actualfinishtime=").append(actualfinishtime);
        sb.append("]");
        return sb.toString();
    }
}